package com.qf.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


@Component
public class ReceiveMessage {
    //@RabbitListener(queues = "simple_queue")
    public void testListener(String message) {
        System.out.println("======WorkListener1接收到的消息为:======" + message);
    }
    @RabbitListener(queues = "simple_queue2")
    public void testListener2(String message) {
        System.out.println("======WorkListener2接收到的消息为:======" + message);
    }
}
